/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.os.util;

/**
 *
 * @author Rubean
 */
public class Utils {

    public static String writeTagXML(String tag, String value){
        return "<" + tag + ">" + value + "</"+tag+">";
    }

    public static boolean validateStr(String str, int min, int max){
      boolean result = false;
      if((str!=null) && !(str.trim().isEmpty())){
        int length = str.length();
            result = ((length>=min) && (length <=max));
      }
      return result;
    }

}
